package com.hong.chapter2;

/**
 * java 虚拟机自带加载器
 */
public class BootClassLoader {
    public static void main(String[] args) throws ClassNotFoundException {
        System.out.println(System.getProperty("sun.boot.class.path"));
        System.out.println(System.getProperty("java.ext.dirs"));

        Class<?> kClass = Class.forName("com.hong.chapter2.SimpleObject");
        System.out.println(kClass.getClassLoader());
        System.out.println(kClass.getClassLoader().getParent());
        System.out.println(kClass.getClassLoader().getParent().getParent());


    }
}
